<?= $this->load->view('tp-admin/func/message') ?>
<!-- start id-form -->
<?= form_open() ?>
<table border="0" cellpadding="0" cellspacing="0" id="id-form">
    <tbody><tr>
            <th valign="top"><label>Tên danh mục:</label></th>
            <td><input type="text" name="category_name" class="inp-form" value="<?= isset($category)?$category->category_name:"" ?>"/></td>
            <td> <?= form_error('category_name'); ?></td>
        </tr>
        <tr>
            <th valign="top"><label>Thứ tự sắp xếp:</label></th>
            <td><input type="text"  value="<?= isset($category)?$category->category_order:"" ?>" name="category_order" class="inp-form <?php if (isset($error_msg)) { ?>inp-form-error <?php } ?>"></td>
            <td><?= form_error('category_order'); ?>
            </td>
        </tr>
        <tr>
            <th valign="top"><label>Trạng thái hiển thị:</label>  </th>
            <td>	


               
                <ul  style="list-style: none;">
                    <li  style="display: inline; padding-right: 10px"><label><input type="radio" name="category_display_state"  checked="checked" value="1" /> Có</label></li>
                    <li  style="display: inline;"><label><input type="radio" name="category_display_state"   value="0" />Không</label></li>
                </ul>
         
            </td>
            <td></td>
        </tr>

        <tr>
            <th>&nbsp;</th>
            <td valign="top">
                <input type="submit"  value="Cập nhật"  name="submit" class="form-submit"/>
                <input type="reset" value="Xóa trắng" class="form-reset"/>
            </td>
            <td></td>
        </tr>
    </tbody></table>
<!-- end id-form  -->
</form>